﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="QL_Quang_Cao.aspx.cs" Inherits="QL_Quang_Cao" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .style2
    {
        width: 100%;
    }
</style>
</asp:Content>

<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <table cellpadding="4" class="style2" 
        style="border-style: solid; border-width: 2px; width: 783px">
                        <tr>
                            <td align="center" colspan="2" 
                                style="width: 758px; height: 30px; background-image: url('images/bg-menu-sp.gif'); background-repeat: repeat-x; font-family: arial, Helvetica, sans-serif; color: #FFFFFF; font-weight: bold;">
                                &nbsp;QUẢN LÝ QUẢNG CÁO</td>
                        </tr>
                        <tr>
                            <td align="right">
                                Mã công ty</td>
                            <td>
                                <asp:TextBox ID="txtmacongty" runat="server" Width="302px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Tên Công Ty</td>
                            <td>
                                <asp:TextBox ID="txttencongty" runat="server" Width="302px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Hình Minh Họa</td>
                            <td>
                                <asp:FileUpload ID="FileUpload1" runat="server" />
&nbsp;<asp:Button ID="btnuploadimage" runat="server" onclick="btnuploadimage_Click" Text="Up Hình" 
                                    Width="78px" />
&nbsp;<asp:Label ID="lblErrHinh" runat="server" ForeColor="#CC00CC"></asp:Label></td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;</td>
                            <td>
                                <asp:TextBox ID="txthinhminhhoa" runat="server" Width="302px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Đường Link</td>
                            <td>
                                <asp:TextBox ID="txtduonglink" runat="server" Width="302px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Ngày bắt đầu</td>
                            <td>
                                <asp:TextBox ID="txtngaybatdau" runat="server" Width="302px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Ngày kết thúc</td>
                            <td>
                                <asp:TextBox ID="txtngayketthuc" runat="server" Width="302px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;</td>
                            <td>
                                <asp:Button ID="btnthem" runat="server" onclick="btnthem_Click" Text="Thêm" 
                                    style="height: 26px" />
&nbsp;<asp:Button ID="btnXoa" runat="server" onclick="btnXoa_Click" Text="Xóa" />
&nbsp;<asp:Button ID="btnSua" runat="server" onclick="btnSua_Click" Text="Sửa" />
&nbsp;<asp:Button ID="btnLuu" runat="server" onclick="btnLuu_Click" Text="Lưu " />
&nbsp;<asp:Button ID="btnKLuu" runat="server" onclick="btnKLuu_Click" Text="Không Lưu" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="lblErr" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color: #3333FF; font-size: 20px">
                                THÔNG TIN CHI TIẾT</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2">
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                    onpageindexchanging="GridView1_PageIndexChanging" 
                                    onselectedindexchanged="GridView1_SelectedIndexChanged" Width="100%">
                                    <Columns>
                                        <asp:BoundField DataField="STT" HeaderText="STT" />
                                        <asp:BoundField DataField="TenCty" HeaderText="Tên Công Ty" />
                                        <asp:BoundField DataField="Hinh_minh_hoa" HeaderText="Hình Minh Họa" />
                                        <asp:BoundField DataField="Href" HeaderText="Đường Link" />
                                        <asp:BoundField DataField="Ngay_bat_dau" HeaderText="Ngày Bắt Đầu" />
                                        <asp:BoundField DataField="Ngay_het_han" HeaderText="Ngày Kết Thúc" />
                                        <asp:CommandField SelectText="Chọn" ShowSelectButton="True" />
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
</table>



</asp:Content>


